pathbar: add the linked style class to GtkPathBar
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 28 Nov 2011 19:41:02 +0000 (14:41 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 28 Nov 2011 19:41:48 +0000 (14:41 -0500)
gtk/gtkpathbar.c

index 14e6ebeddd011e27c495bf29ef0caf9e341f894a..9e2fbb62a62d2a41a2bb64dd37c84d05a7df0ab4 100644 (file)
@@ -176,6 +176,8 @@ get_slider_button (GtkPathBar  *path_bar,
 static void
 gtk_path_bar_init (GtkPathBar *path_bar)
 {
+  GtkStyleContext *context;
+
   gtk_widget_set_has_window (GTK_WIDGET (path_bar), FALSE);
   gtk_widget_set_redraw_on_allocate (GTK_WIDGET (path_bar), FALSE);
 
@@ -204,6 +206,9 @@ gtk_path_bar_init (GtkPathBar *path_bar)
                     G_CALLBACK (gtk_path_bar_slider_button_press), path_bar);
   g_signal_connect (path_bar->down_slider_button, "button-release-event",
                     G_CALLBACK (gtk_path_bar_slider_button_release), path_bar);
+
+  context = gtk_widget_get_style_context (GTK_WIDGET (path_bar));
+  gtk_style_context_add_class (context, GTK_STYLE_CLASS_LINKED);
 }
 
 static void